
#ifndef _CBLOCO_H
#define _CBLOCO_H

#include <SDL\SDL.h>
#include <vector>

#include "defs.h"
#include "CSurface.h"
#include "CItem.h"
#include "Texto.h"
#include "ItemDesc.h"
#include "PontosText.h"

class CBloco {

	private:
		float x;
		float y;
		SDL_Surface* blocoSurface;
		bool visible;
		bool solid;
		bool objectiveBrick;

		void dropRandomItem(CItem* pItem);

	public:
		CBloco();

		void setBrickSpot(int row, int col);
		float getPosX();
		float getPosY();
		int getWidth();
		int getHeight();
		bool destroyBrick();
		bool isVisible();
		void setSolid(bool);
		void setObjectiveBrick(bool);
		bool isObjectiveBrick();

		bool onLoad(char *file);
		void onLoop();
		void onRender(SDL_Surface* destSurface);
		void onCleanup();
};

#endif